<template>
	<div>
		<div class="dynamic-item">
			<div class="left">
				<div class="header">
					<img
						src="http://img.chwlsq.com/4187/logo/JXFcmlFS68iaWJLDUGXwzOJiaoez1ekdUeqicqpGIFxA8GHicAO1V02B4QTF9LnKvAib49W7HwRRyCiaD2MJk6baYibLx2KlRGjuqsj.gif"
					/>
				</div>
				<span
					class="follow"
					:class="isFollow ? 'guanzhu-yes' : 'guanzhu-not'"
					@click="clickFollow"
				>+关注</span>
			</div>
			<div class="right">
				<span class="column1">雨露</span>
				<span class="column2">找明天去石家庄的车，联系电话联系电话联系电话联系电话15830698113</span>
				<div class="column3">
					<div class="row1">
						<img src="../assets/images/dingwei.png" alt />
						<span>辛集市第一医院 | 09-02 21:34</span>
					</div>
					<img class="huifu" src="../assets/images/huifu.png" alt />
				</div>
			</div>
		</div>
		<div style="width:100%; height:1px; background-color:#f1f1f1"></div>
	</div>
</template>
<script>

export default {
	data () {
		return {
			isFollow: false
		}
	},
	methods: {
		clickFollow () {
			this.isFollow = !this.isFollow
		}
	}
}
</script>
<style scoped>
.dynamic-item {
	margin: 20px 10px 20px 20px;
	display: flex;
	flex-direction: row;
	color: #666;
	font-size: 14px;
}
.left {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.left .header > img {
	width: 50px;
	height: 50px;
	border-radius: 50px;
}
.left .follow {
	display: inline-block;
	width: 50px;
	height: 20px;
	line-height: 20px;
	font-size: 12px;
	text-align: center;
	margin-top: 5px;
}
.left .guanzhu-not {
	color: #fff;
	background-color: #ed414a;
  border: 1px solid #ed414a;
}
.left .guanzhu-yes {
  color: #666;
  border: 1px solid #666;
}
.right {
	margin-left: 30px;
	display: flex;
	flex-direction: column;
}
.right .column1 {
	font-size: 15px;
}
.right .column2 {
	margin-top: 5px;
	line-height: 24px;
}
.right .column3 {
	margin-top: 5px;
	font-size: 12px;
	font-weight: 300;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}
.right .column3 .row1 {
	display: flex;
	flex-direction: row;
	align-items: center;
}
.huifu {
	width: 25px;
	height: 23px;
}
</style>
